package com.example.yuanboot.common.msg;

import lombok.Data;

import java.util.List;

/**
 * 表格fanhui
 *
 * @author qingyan 2021-08-25
 */
@Data
public class TableResponse<T> extends BaseResponse{

    private List<T> data;

    private long count;

    public TableResponse(IResultCode resultCode, List<T> data, long count) {
        super(resultCode.getCode(), resultCode.getMessage());
        this.data = data;
        this.count = count;
    }

    public TableResponse(List<T> data, long count) {
        this(BaseResultCode.SUCCESS, data, count);
    }
}
